import request from '@/utils/request'

// 登录
export const login = (username, password) => {
  return request({
    url: '/login',
    method: 'post',
    data: { userName:username, password }
  })
}

// 获取用户信息
export const getUserInfo = () => {
  return request({
    url: '/userInfo',
    method: 'get'
  })
}

